package boogie;

import boogie.game.Game;
import boogie.game.GameState;
import java.awt.Color;
import java.awt.Graphics2D;

/**
 *
 * @author Boogie
 */
public class TestState2 extends GameState{

    public TestState2(Game game) {
        super("test2");
        
    }
    private int x  = 0,y = 0;

    @Override
    public void onInit() {
        System.out.println("test2 init");
        TestSprite s = new TestSprite(this);
    }

    @Override
    public void drawBackgorund(Graphics2D g) {
        g.setColor(Color.GREEN);
        g.fillRect(0, 0, this.getGame().width,this.getGame().height);
    }
}
